import { http } from "@/utils";

export function $list(params) {
  return http({
    url: "userList", //接口路径
    method: "get", //请求方式
    params,
  });
}

export const $userList = async () => {
  return await http.get("user/list");
};

//添加角色
export const $addUser = async (params) => {
  let { data } = await http.post("/user/addUser", params);
  return data;
};
